//
//  BRStackLabelView.h
//  Kexu
//
//  Created by IOS on 2023/7/17.
//

#import <UIKit/UIKit.h>
#import "BRODListView.h"
NS_ASSUME_NONNULL_BEGIN
/// 默认垂直，间距10
@interface BRStackLabelView : UIStackView

- (void)br_addSubLabel:(NSArray *)titles;
- (void)br_addSubLabel:(NSArray *)titles font:(UIFont *_Nullable)font textColor:(UIColor *_Nullable)color;

- (void)br_text:(NSString *)text by:(NSInteger)index;

- (void)br_attText:(NSAttributedString *)attText by:(NSInteger)index;

- (void)br_textHidden:(BOOL)hidden by:(NSInteger)index;

@end

/// 默认垂直，间距10
@interface BRStackImgLabelView : UIStackView

- (void)br_addSubLabel:(NSArray *)titles;
- (void)br_addSubLabel:(NSArray *)titles font:(UIFont *_Nullable)font textColor:(UIColor *_Nullable)color;

- (void)br_text:(NSString *)text by:(NSInteger)index;

- (void)br_attText:(NSAttributedString *)attText by:(NSInteger)index;

- (void)br_textHidden:(BOOL)hidden by:(NSInteger)index;

- (void)br_img:(NSString *)img by:(NSInteger)index;

@end
///  文 + 文
@interface BRStackCellView : UIStackView

- (void)br_text:(NSString *)text by:(NSInteger)index;

- (void)br_addList:(NSArray *)titles;

- (void)br_hidden:(BOOL)hidden by:(NSInteger)index;
- (void)br_hiddenLine:(BOOL)hidden by:(NSInteger)index;
- (void)br_textFont:(UIFont *)font by:(NSInteger)index;

@end
/// 带图 文 + 文
@interface BRODStackCellView : UIStackView

- (void)br_text:(NSString *)text by:(NSInteger)index;
- (void)br_title:(NSString *)title text:(NSString *)text by:(NSInteger)index;
- (void)br_hidden:(BOOL)hidden by:(NSInteger)index;

- (void)br_addList:(NSArray *)titles imgs:(NSArray *)imgs;

- (void)br_img:(NSString *)img by:(NSInteger)index;
@end

/// 2个数据文本（2stack）
@interface BRMData2StackView : UIStackView

- (instancetype)initWhit:(NSArray *)titles;

@property (nonatomic,assign) CGFloat viewDefaultH;

- (void)br_title:(NSString *)title text:(NSString *)text by:(NSInteger)index;
- (void)br_text:(NSString *)text by:(NSInteger)index;

- (void)br_resizeDefaultH;

- (void)br_showTips:(NSInteger)index block:(BRIDBlock)clickBlock;

@end

/// 2文本 stack
@interface BRStackTitleTextView : UIStackView

@property (nonatomic,strong) QMUILabel *titleL;
@property (nonatomic,strong) QMUILabel *textL;
@property (nonatomic,strong) NSString *title;
@property (nonatomic,strong) NSString *text;

@property (nonatomic,strong) UIColor *titleColor;
@property (nonatomic,strong) UIColor *textColor;

@end

NS_ASSUME_NONNULL_END
